package com.happy3w.task.composer;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TaskExecuteMap {
    private final Map<String, TaskStatusHolder> taskMap;

    public TaskExecuteMap(Map<String, TaskStatusHolder> taskMap) {
        this.taskMap = taskMap;
    }

    public static TaskExecuteMap createMapForOutput(String outputName, Map<String, Task> outputTaskMap) {
        List<Task> refTasks = new ArrayList<>();
        Map<String, TaskStatusHolder> taskMap = new HashMap<>();
        outputTaskMap.get(outputName);

        return new TaskExecuteMap(taskMap);
    }
}
